package com.example.joke.service

import android.app.Service
import android.content.Intent
import android.os.IBinder
import com.example.joke.UserAidl

class MessageService : Service() {
    override fun onBind(p0: Intent?): IBinder? {
        return mBinder
    }

    private val mBinder : UserAidl.Stub = object : UserAidl.Stub() {

        override fun getUserName(): String {
            return "yangliuliu"
        }

        override fun getUserPwd(): String {
            return "123456"
        }

    }
}